﻿@model LynxWiki.ViewModels.TopicRenameViewData

@{
    ViewBag.Title = "TopicRename";
}

<h2>TopicRename</h2>
@using (Html.BeginForm("TopicRename", "WikiTopic", FormMethod.Post, new { id = "frmTopicRename" })) {
    <div id="ErrorMsgDiv" >@Html.DisplayTextFor(model => model.ErrorMsg)</div>
    @Html.Label("Original Topic Name: ")
    @Html.DisplayTextFor(model => model.TopicName)<br />
    @Html.Label("New Topic Name: ")@Html.EditorFor(model => model.NewTopicName)
    <input type="submit" name="btnRename" id="btnRename" value="Rename" />
    <input type="submit" name="btnCancel" id="btnCancel" value="Cancel" />
    @Html.HiddenFor(model => model.PagePath)
    @Html.HiddenFor(model => model.DiscussionExisted)
    @Html.HiddenFor(model => model.ErrorMsg)
    @Html.HiddenFor(model => model.TopicName)
}

